//
//  IoriDatePicker.h
//  DrinkTonight
//
//  Created by Iori on 11-12-30.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^sheetActionHandle)(UIActionSheet *sheet, NSInteger buttonIndex);

@interface IoriDatePicker : UIDatePicker <UIActionSheetDelegate>
{

}

@property (nonatomic, copy) sheetActionHandle actionHandle;

+(UIAlertController*)showTextInputInViewController:(UIViewController*)viewController
                               title:(NSString*)title
                          okCallBack:(void (^)(UITextView *txtView))okBlock
                      cancelCallBack:(void (^)())cancelBlock;

-(void) test;
-(void)showDatePickerInViewController:(UIViewController*)vc
                    okCallbackHandler:(void (^ __nullable)(UIDatePicker *picker))handler
                cancelCallbackHandler:(void (^ __nullable)())cancelHandler;

-(UIActionSheet*)showActionMenusWithTitle:(NSString* __nonnull)title
                                    items:(NSArray<NSString*>* __nonnull)arrayTitle
                                   inView:(UIView* __nonnull)view
                             sheetHandler:(sheetActionHandle __nonnull)handle;




@end
